export default {
  'POST /login': (req: any, res: any) => {
    if (req.body.username !== '1' || req.body.password !== '1') {
      res.end(JSON.stringify({ status: 401, msg: '用户名密码不正确' }));
    } else {
      res.end(JSON.stringify({ status: 200, location: '.' }));
    }
  },
};
